package com.tcs.start;

import com.tcs.netty.channel.ChannelInit;
import com.tcs.netty.main.NettyMain;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelOption;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.net.InetSocketAddress;

public class StartUp {

    private static final Logger logger = LoggerFactory.getLogger(StartUp.class);

    public static void main(String[] args) {
        try {
            ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("classpath:spring/app.xml");
            app.registerShutdownHook();
        } catch (BeansException e) {
            logger.error("" , e);
        }
    }

}
